Skip to content

feat: kubo 0.42, electron 42#3167

Open
lidel wants to merge 8 commits into
mainfrom
kubo-0.42-electron-42
Open

feat: kubo 0.42, electron 42#3167
lidel wants to merge 8 commits into
mainfrom
kubo-0.42-electron-42

Conversation

@lidel

@lidel lidel commented Jun 8, 2026

Copy link
Copy Markdown
Member

@lidel lidel self-assigned this Jun 8, 2026
@socket-security

socket-security Bot commented Jun 8, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedsinon@​13.0.210010010050100
Updatedelectron-builder@​26.8.1 ⏵ 26.15.299 +110069 +198 +1100
Addedsemver-regex@​3.1.41001007180100
Updatedelectron-updater@​6.8.3 ⏵ 6.8.99510078 +196 +1100
Addedshx@​0.3.410010010082100
Addedstandard@​16.0.4991009986100
Updatedelectron@​41.3.0 ⏵ 42.3.3100 +7100100 +198100
Updatedkubo@​0.41.0 ⏵ 0.42.0100 +33100100 +2100 +6100

View full report

@socket-security

socket-security Bot commented Jun 8, 2026

Copy link
Copy Markdown

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

Ignoring alerts on:

  • string.prototype.padend@3.1.1
  • js-yaml@4.2.0

View full report

lidel added 3 commits June 8, 2026 14:30
Electron 42 no longer downloads its binary during postinstall, so unit/e2e tests that require('electron') in a Node context fail with a missing path.txt. Run electron's install-electron only in pretest hooks, keeping npm install lean for downstream packagers that use a system electron.
@lidel lidel force-pushed the kubo-0.42-electron-42 branch 4 times, most recently from 19fa4cb to c034326 Compare June 8, 2026 13:18
lidel added 2 commits June 8, 2026 18:40
Electron 42 fetches its binary lazily on first bin run, so parallel Playwright workers each race install.js and leave path.txt absent. Pre-install once, serialized, in a pretest step that falls back to a forced fresh download (recovers a corrupt cache) and fails loudly if path.txt still does not appear.
Jobs had no timeout-minutes and defaulted toward GitHub's 6h limit, so a stuck step could hang for hours. Cap each job above its worst-case successful-run duration: webui 10m (~15s typical), test 15m (~2m typical), build 40m (ubuntu packaging+signing peaked at ~22m).
@lidel lidel force-pushed the kubo-0.42-electron-42 branch from c034326 to b20c9c2 Compare June 8, 2026 16:40
The upgrade/error template only renders after kubo's startup attempt resolves, which is slow on CI (first run of a freshly downloaded binary, notably macOS), and it may appear in a reloaded or newly created prompt window. Poll every prompt window for the upgrade text with a budget-aligned timeout instead of binding to the first window and racing a fixed 45s wait.
@lidel

lidel commented Jun 8, 2026

Copy link
Copy Markdown
Member Author

@SocketSecurity ignore npm/js-yaml@4.2.0
@SocketSecurity ignore npm/string.prototype.padend@3.1.1

Socket comments are false positive. Both alerts are Socket's obfuscatedFile heuristic misfiring on minified dist bundles:

  • js-yaml@4.2.0 is the canonical YAML parser maintained by nodeca, pulled in transitively by electron-builder.
  • string.prototype.padend@3.1.1 is the standard es-shim polyfill by ljharb, pulled in transitively by npm-run-all.

Both are well-known, widely-used packages and arrive only as dev/build dependencies, not runtime code shipped to users.

electron-builder 26.14 swapped its native (app-builder-bin) icon converter for a wasm-vips one that cannot read our legacy JPEG2000 icon.icns when generating the Linux icon set, which fails the Linux build. Provide an explicit 512px linux.icon PNG (the idiomatic Linux setup) so electron-builder resizes the PNG directly and never converts the .icns; mac/win keep their icns/ico. Drop the now-unused install-electron script.
@lidel lidel force-pushed the kubo-0.42-electron-42 branch from 46b6f56 to 0b2da1a Compare June 8, 2026 19:19
@lidel lidel marked this pull request as ready for review June 8, 2026 22:58
@lidel lidel requested a review from a team as a code owner June 8, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant